(function($){
	/*"use strict";*/
	$.entwine('ss', function($) {
		$('#action_doPDF').entwine({
			onclick: function(e) {
				window.open($(this).data('pdf-link'), '_blank');
				e.preventDefault();
				return false;
			}
		});
		
		$('#action_doVoidReceipt').entwine({
			onclick: function(e) {
				if (confirm('Remark is required when you void this receipt. Are you sure you want to void this receipt?')) {
					this._super(e);
				} else {
					e.preventDefault();
					return false;
				}
			}
		});
	});

}(jQuery));